package com.tobeface.wechat.request;

import com.tobeface.modules.lang.Langs;

/**
 * @author loudyn
 */
public final class OnceWeChatRequestStrategy implements WeChatRequestStrategy {

    @Override
    public WeChatResponse perform(WeChatRequestSinker sinker, WeChatRequest req) {
        try {

            return sinker.sinkRequest(req);
        } catch (Exception e) {
            throw Langs.toUncheck(e);
        }
    }
}
